package AS3
{
public class Country
{
    private var polishName:String = new String("");
    private var englishName:String = new String("");
    private var _name:String = new String("");
    private var countryRegion:int = new int(0);
    private var temperatures:Array = new Array;
    private var population:Array = new Array;

    private var coalEn:Number = new Number(0);
    private var oilEn:Number = new Number(0);
    private var gasEn:Number = new Number(0);
    private var hydroEn:Number = new Number(0);
    private var nuclearEn:Number = new Number(0);
    private var renewableEn:Number = new Number(0);

    private var coalEnOriginal:Number = new Number(0);
    private var oilEnOriginal:Number = new Number(0);
    private var gasEnOriginal:Number = new Number(0);
    private var hydroEnOriginal:Number = new Number(0);
    private var nuclearEnOriginal:Number = new Number(0);
    private var renewableEnOriginal:Number = new Number(0);

    private var emissionPerCapitaEqVal:Number = new Number(0);
    private var emissionPerCapitaVal:Number = new Number(0);

    private var	consumption2000Val:Number= new Number(0);
    private var	economyEff:Number= new Number(0);

    private var _energyConsumptionGJ:Number = new Number();

    private var	kWhPerTonCO2:Number= new Number(0);

    private var _carPer1000;Number;


    public function toString():String {
        var result:String = "";
        result += "coalEn[ " + coalEn +"] oilEn[" + oilEn + "]gasEn[" + gasEn + "]hydroEn[" + hydroEn;
        result += "]nuclearEn[" + nuclearEn + "] renewableEn[ " + renewableEn + "]consumption2000";
        result += "[" + consumption2000 + "]economyEff[" + economyEff + "]";



        return result;
    }


    public function get name():String {
        return _name;
    }

    public function set name(value:String):void {
        _name = value;
    }

    public function get carPer1000():* {
        return _carPer1000;
    }

    public function set carPer1000(value):void {
        _carPer1000 = value;
    }

    public function Country(name:String,region:int){
        englishName = name;
        countryRegion = region;
    }

    public function set namePl(setValue:String):void{
        polishName = setValue;
    }

    public function get namePl():String{
        return polishName;
    }

    public function set nameEn(setValue:String):void{
        englishName = setValue;
    }

    public function get nameEn():String{
        return englishName;
    }

    public function set region(setValue:int):void{
        countryRegion = setValue;
    }

    public function get region():int{
        return countryRegion;
    }

    public function set monthTemperatures(setValue:Array):void{
        temperatures = setValue;
    }

    public function get monthTemperatures():Array{
        return temperatures;
    }

    public function setMonthTemperature(value:Number,month:int):void{
        temperatures[month] = value;
    }

    public function getMonthTemperature(month:int):Number{
        return temperatures[month];
    }

    public function set populationArray(setValue:Array):void{
        population = setValue;
    }

    public function get populationArray():Array{
        return population;
    }

    public function setPopulationForYear(setValue:Number, i:int):void{
        population[i] = setValue;
    }

    public function getPopulationForYear(i:int):Number{
        return population[i];
    }

    public function set coalEnergyPercentage(value:Number):void{
        coalEn = value;
    }

    public function get coalEnergyPercentage():Number{
        return coalEn;
    }

    public function set oilEnergyPercentage(setValue:Number):void{
        oilEn = setValue;
    }

    public function get oilEnergyPercentage():Number{
        return oilEn;
    }

    public function set gasEnergyPercentage(setValue:Number):void{
        gasEn = setValue;
    }

    public function get gasEnergyPercentage():Number{
        return gasEn;
    }

    public function set hydroEnergy(setValue:Number):void{
        hydroEn = setValue;
    }

    public function get hydroEnergy():Number{
        return hydroEn;
    }

    public function set nuclearEnergy(setValue:Number):void{
        nuclearEn = setValue;
    }

    public function get nuclearEnergy():Number{
        return nuclearEn;
    }

    public function set renewableEnergy(setValue:Number):void{
        renewableEn = setValue;
    }

    public function get renewableEnergy():Number{
        return renewableEn;
    }

    public function set coalEnergyOriginal(setValue:Number):void{
        coalEnOriginal = setValue;
    }

    public function get coalEnergyOriginal():Number{
        return coalEnOriginal;
    }

    public function set oilEnergyOriginal(setValue:Number):void{
        oilEnOriginal = setValue;
    }

    public function get oilEnergyOriginal():Number{
        return oilEnOriginal;
    }

    public function set gasEnergyOriginal(setValue:Number):void{
        gasEnOriginal = setValue;
    }

    public function get gasEnergyOriginal():Number{
        return gasEnOriginal;
    }

    public function set hydroEnergyOriginal(setValue:Number):void{
        hydroEnOriginal = setValue;
    }

    public function get hydroEnergyOriginal():Number{
        return hydroEnOriginal;
    }

    public function set nuclearEnergyOriginal(setValue:Number):void{
        nuclearEnOriginal = setValue;
    }

    public function get nuclearEnergyOriginal():Number{
        return nuclearEnOriginal;
    }

    public function set renewableEnergyOriginal(setValue:Number):void{
        renewableEnOriginal = setValue;
    }

    public function get renewableEnergyOriginal():Number{
        return renewableEnOriginal;
    }

    public function set emissionPerCapitaEq(setValue:Number):void{
        emissionPerCapitaEqVal = setValue;
    }

    public function get emissionPerCapitaEq():Number{
        return emissionPerCapitaEqVal;
    }

    public function set emissionPerCapita(setValue:Number):void{
        emissionPerCapitaVal = setValue;
    }

    public function get emissionPerCapita():Number{
        return emissionPerCapitaVal;
    }

    public function set consumption2000(setValue:Number):void{
        consumption2000Val = setValue;
    }

    public function get consumption2000():Number{
        return consumption2000Val;
    }

    public function set economyEfficiency(setValue:Number):void{
        economyEff = setValue;
    }

    public function get economyEfficiency():Number{
        return economyEff;
    }

    public function get energyConsumptionGJ():Number {
        return _energyConsumptionGJ;
    }

    public function set energyConsumptionGJ(value:Number):void {
        _energyConsumptionGJ = value;
    }

    public function resetOriginalValues():void {
        coalEn = coalEnOriginal;
        oilEn = oilEnOriginal;
        gasEn = gasEnOriginal;
        hydroEn = hydroEnOriginal;
        nuclearEn = nuclearEnOriginal;
        renewableEn = renewableEnOriginal;
    }
}
}